Package-level declarations

Types

Link copied to clipboard
interface ObjectCreator<T>

Interface to create objects of the given type from a prompt or messages. Allows setting strongly typed examples.

Link copied to clipboard
class TemplateOperations(templateName: String, templateRenderer: <Error class: unknown class>, promptRunnerOperations: PromptRunnerOperations)

Llm operations based on a compiled template. Similar to com.embabel.agent.api.common.PromptRunnerOperations, but taking a model instead of a template string. Template names will be resolved by the com.embabel.common.textio.template.TemplateRenderer provided.

Functions

Link copied to clipboard

Excludes the given properties when creating an object.

Link copied to clipboard
fun <T> ObjectCreator<T>.withProperties(vararg properties: KProperty1<T, Any>): ObjectCreator<T>

Includes the given properties when creating an object.